/*
 * ClientAddress.java
 *
 * Created on February 27, 2004, 2:41 PM
 *
 * Copyright (c) 2003 by ScalarSoft Inc. All rights reserved.
 */

package com.scalar.chiptrack.commons;

import com.scalar.chiptrack.commons.Address;

/**
 * <code>ClientInfo</code>
 * The ClientInfo class is for Address and Client tables.
 * This class provides a constructor to access
 * address object that gets all the fields of Address table
 * and fields from clent table.
 *
 * @author  Chakravarthy
 */
 /* Saritha on 11/15/2004 added ccatsNumber to a ClientInfo() constructor*/
public class ClientInfo {
    
    /**
     * the clientId
     */
    private int clientId = 0;
    /**
     * the clientName
     */
    private String clientName = null;
    /**
     * the clientAddress
     */
	private String ccatsNumber = null;
    private Address address = null;
    private int jitWindow = 0;
    private int shipJitWindow = 0;

    private String generatedRelShipLotNo = null;


    /** Creates a new instance of ClientAddress
     * default Constructor
     */
    public ClientInfo() {
    }
    
    /**
     *Creates a new instance of ClientAddress with
     * an address object, clientId and client name
     *
     *@param address the Address Object
     *@param clientId the cleintID from Client Table
     *@param clientName the Name from Client Table
     */
    public ClientInfo( Address address, int clientId, String clientName, String  ccatsNumber,int jitWindow) {
        this.address    = address;
        this.clientId   = clientId;
        this.clientName = clientName;
		this.ccatsNumber = ccatsNumber;
        this.jitWindow  = jitWindow;
    }
    
    /**
     * get Address Object as Address
     * return  address
     */
    public Address getAddress() {
        return address;
    }
    
    /**
     *set the Address
     *
     *@param address
     */
    public void setAddress( Address address ) {
        this.address = address;
    }
    
    /**
     * get ClientId
     * return  clientId
     */
    public int getClientId() {
        return this.clientId;
    }
    
    /**
     *set the ClientId
     *
     *@param clientId
     */
    public void setClientId(int clientId) {
        this.clientId = clientId;
    }
    
    /**
     * get Address Object as ClientAddress
     * return  ClientAddress
     */
    public String getClientName() {
        return clientName;
    }
    
    /**
     *set the clientName
     *
     *@param clientName
     */
    public void setClientName( String clientName ) {
        this.clientName = clientName;
    }

	public String getCcatsNumber(){
		return ccatsNumber;
	}

	public void setCcatsNumber(String ccatsNumber){
		this.ccatsNumber = ccatsNumber;
	}

     public int getJitWindow() {
         return jitWindow;
     }

     public void setJitWindow(int jitWindow) {
         this.jitWindow = jitWindow;
     }

     public int getShipJitWindow()
     {
         return shipJitWindow;
     }

     public void setShipJitWindow( int shipJitWindow )
     {
         this.shipJitWindow = shipJitWindow;
     }

    public String getGeneratedRelShipLotNo() {
        return generatedRelShipLotNo;
    }

    public void setGeneratedRelShipLotNo(String generatedRelShipLotNo) {
        this.generatedRelShipLotNo = generatedRelShipLotNo;
    }
}



